﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.Order
{
    public partial class Show : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string Order_ID = strid;
                    ShowInfo(Order_ID);
                }
            }
        }

        private void ShowInfo(string Order_ID)
        {
            BLL.Order_List bll = new BLL.Order_List();
            Model.Order_List model = bll.GetModel(Order_ID);
            this.lblOrder_ID.Text = model.Order_ID;
            this.lblBuyer.Text = model.Buyer;
            this.lblVendor_ID.Text = model.Vendor_ID;
            this.lblOrder_Code.Text = model.Order_Code;
            this.lblCreated_Date.Text = model.Created_Date.ToString();
            this.lblDelivery_Type.Text = model.Delivery_Type.ToString();
            this.lblDelivery_Name.Text = model.Delivery_Name;
            this.lblDelivery_Phone.Text = model.Delivery_Phone;
            this.lblDelivery_Address.Text = model.Delivery_Address;
            this.lblReceive_PreReceiveDateTimeFrom.Text = model.Receive_PreReceiveDateTimeFrom.ToString();
            this.lblReceive_PreReceiveDateTimeTo.Text = model.Receive_PreReceiveDateTimeTo.ToString();
            this.lblVender_GetGoodsDateFrom.Text = model.Vender_GetGoodsDateFrom.ToString();
            this.lblVender_GetGoodsDateTo.Text = model.Vender_GetGoodsDateTo.ToString();
            this.lblPay_Type.Text = model.Pay_Type.ToString();
            this.lblPay_Status.Text = model.Pay_Status.ToString();
            this.lblOrder_Status.Text = model.Order_Status.ToString();
            this.lblGoods_Money.Text = model.Goods_Money.ToString();
            this.lblDelivery_Money.Text = model.Delivery_Money.ToString();
            this.lblPay_Date.Text = model.Pay_Date.ToString();
            this.lblReceive_Date.Text = model.Receive_Date.ToString();
            this.lblClosed_Date.Text = model.Closed_Date.ToString();

        }

    }
}